type github.com/google/go-cmp/cmp.state
32 uses
github.com/google/go-cmp/cmp (current package)
compare.go#L167: type state struct {
compare.go#L188: func newState(opts []Option) *state {
compare.go#L190: s := &state{opts: Options{validator{}}}
compare.go#L196: func (s *state) processOption(opt Option) {
compare.go#L223: func (s *state) statelessCompare(step PathStep) diff.Result {
compare.go#L238: func (s *state) compareAny(step PathStep) {
compare.go#L303: func (s *state) tryOptions(t reflect.Type, vx, vy reflect.Value) bool {
compare.go#L312: func (s *state) tryMethod(t reflect.Type, vx, vy reflect.Value) bool {
compare.go#L324: func (s *state) callTRFunc(f, v reflect.Value, step Transform) reflect.Value {
compare.go#L347: func (s *state) callTTBFunc(f, x, y reflect.Value) bool {
compare.go#L375: func (s *state) compareStruct(t reflect.Type, vx, vy reflect.Value) {
compare.go#L418: func (s *state) compareSlice(t reflect.Type, vx, vy reflect.Value) {
compare.go#L510: func (s *state) compareMap(t reflect.Type, vx, vy reflect.Value) {
compare.go#L552: func (s *state) comparePtr(t reflect.Type, vx, vy reflect.Value) {
compare.go#L569: func (s *state) compareInterface(t reflect.Type, vx, vy reflect.Value) {
compare.go#L582: func (s *state) report(eq bool, rf resultFlags) {
options.go#L32: filter(s *state, t reflect.Type, vx, vy reflect.Value) applicableOption
options.go#L43: apply(s *state, vx, vy reflect.Value)
options.go#L68: func (opts Options) filter(s *state, t reflect.Type, vx, vy reflect.Value) (out applicableOption) {
options.go#L89: func (opts Options) apply(s *state, _, _ reflect.Value) {
options.go#L134: func (f pathFilter) filter(s *state, t reflect.Type, vx, vy reflect.Value) applicableOption {
options.go#L181: func (f valuesFilter) filter(s *state, t reflect.Type, vx, vy reflect.Value) applicableOption {
options.go#L203: func (ignore) filter(_ *state, _ reflect.Type, _, _ reflect.Value) applicableOption { return ignore{} }
options.go#L204: func (ignore) apply(s *state, _, _ reflect.Value) { s.report(true, reportByIgnore) }
options.go#L212: func (validator) filter(_ *state, _ reflect.Type, vx, vy reflect.Value) applicableOption {
options.go#L221: func (validator) apply(s *state, vx, vy reflect.Value) {
options.go#L317: func (tr *transformer) filter(s *state, t reflect.Type, _, _ reflect.Value) applicableOption {
options.go#L331: func (tr *transformer) apply(s *state, vx, vy reflect.Value) {
options.go#L375: func (cm *comparer) filter(_ *state, t reflect.Type, _, _ reflect.Value) applicableOption {
options.go#L382: func (cm *comparer) apply(s *state, vx, vy reflect.Value) {
options.go#L422: func (exporter) filter(_ *state, _ reflect.Type, _, _ reflect.Value) applicableOption {
options.go#L528: func (reporter) filter(_ *state, _ reflect.Type, _, _ reflect.Value) applicableOption {